package com.ali;

import rpc.http.server.MyWebServer;
import rpc.register.MyRegister;
import com.ali.service.TestService;
import com.ali.service.impl.TestServiceImpl;

public class ProviderMain {
    public static void main(String[] args) {
        String hostname = "localhost";
        int port = 8080;
        //服务注册
        MyRegister.register(TestService.class, TestServiceImpl.class, hostname, port);

        MyWebServer.start(hostname, port);
    }
}
